<link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/index.css" rel="stylesheet">
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl?>/js/index.js"></script>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span3">
            <div class="date">
                <p class="title">博客日历</p>
                <?php $this->widget('Clander');?>
            </div>
            <div class="tags">
                <p class="title">标签云集</p>
                <div class="tags-content">
                    <?php foreach($tagsData as $k=>$v):?>
                        <span class="label label-success"><a href=""><?php echo $v->tag_name?></a></span>
                    <?php endforeach;?>
                </div>
            </div>
            <div class="share">
                <p class="title">分享本博</p>
                <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a title="分享到QQ空间" href="#" class="bds_qzone" data-cmd="qzone"></a><a title="分享到新浪微博" href="#" class="bds_tsina" data-cmd="tsina"></a><a title="分享到腾讯微博" href="#" class="bds_tqq" data-cmd="tqq"></a><a title="分享到微信" href="#" class="bds_weixin" data-cmd="weixin"></a><a title="分享到人人网" href="#" class="bds_renren" data-cmd="renren"></a></div>
                <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"32"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
            </div>
        </div>
        <div class="span6">
            <div class="article">
                <?php foreach($articleList as $key=>$val):?>
                <div class="content">
                    <p class="title"><a href="<?php echo $this->createUrl('article/details', array('id'=>$val->id))?>"><?php echo $val->article_title;?>
                        <?php if($val->article_is_top):?>
                        <span class="top"><img src="<?php echo Yii::app()->theme->baseurl?>/img/top.gif" /></span>
                        <?php endif;?></a>
                    </p>
                    <div class="main">
                        <div class="img">
                            <img src="<?php echo BaseUrl.'/'.$val->article_thumbnail;?>">
                        </div>
                        <div class="text">
                            <?php echo $val->article_summary?>
                        </div>
                        <div class="other">
                            <span class="li"><i class="icon-time"></i><span><?php echo $val->article_date;?></span></span>
                            <span class="li right"><i class="icon-comment"></i><span>10</span></span>
                            <span class="li right or"><i class="icon-user"></i><span><?php echo $val->article_admin;?></span></span>
                            <span class="li right or"><i class="icon-list"></i><span><?php echo $val->article_nav;?></span></span>
                        </div>
                    </div>
                </div>
                <?php endforeach;?>
            </div>
        </div>
        <div class="span3">
            <p class="title">最热博文</p>
            <div class="content-list">
                <ul>
                    <li><a href="">文章一文章一文章一文章一</a><em>2014-08-09</em></li>
                    <li><a href="">文章一文章一文章一文章一</a><em>2014-08-09</em></li>
                    <li><a href="">文章一文章一文章一文章一</a><em>2014-08-09</em></li>
                    <li><a href="">文章一文章一文章一文章一</a><em>2014-08-09</em></li>
                    <li><a href="">文章一文章一文章一文章一</a><em>2014-08-09</em></li>
                </ul>
            </div>
            <br /><br />
            <p class="title">随机图文</p>
            <div class="content-pic-list">
                <?php foreach($randList as $key=>$val) :?>
                <dl>
                    <dt><img width="75" height="75" src="<?php echo $val->article_thumbnail;?>"></dt>
                    <dd class="title"><a href=""><?php echo $val->article_title;?></a></dd>
                    <dd><?php echo $val->article_summary;?></dd>
                    <dd><?php echo $val->article_date;?></dd>
                </dl>
                <?php endforeach;?>
            </div>
            <p class="title">友情链接<a href="">申请</a></p>
            <div class="link-list">
                <span class="label label-info"><a href="">链接1发生的发生的发生</a></span>
                <span class="label label-info"><a href="">链接1</a></span>
                <span class="label label-info"><a href="">链接1</a></span>
                <span class="label label-info"><a href="">链接1</a></span>
                <span class="label label-info"><a href="">链接1</a></span>
            </div>
        </div>
        <div class="goto-top">
            <img src="<?php echo Yii::app()->theme->baseUrl?>/img/goto-top.png" />
        </div>
    </div>
</div>
